// 数组类型

export { } // 确保跟其他示例没有成员冲突

const arr1: Array<number> = [12, 23, 4];

const arr2: number[] = [1, 2, 3];


//--------------
function sum(...args: number[]) {
    return args.reduce((prev, current) => prev + current, 0)
}

sum(1, 2, 3)